package com.xyh.transaction.entity;

import com.xyh.transaction.common.GoodsCondition;
import lombok.*;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Goods extends BaseEntity {

    private Integer id;

    private String name;

    // 商品编码
    private String code;

    private GoodsCondition condition; // 商品成色

    private Integer stock; // 库存

    private String desc;

    private BigDecimal price;

    private Integer categoryId;

    public Goods(Integer id, String name, String desc, BigDecimal price) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.price = price;
    }
}
